from django.db import models

class AIN_User_Package(models.Model):
    uuid = models.CharField(max_length=36, primary_key=True)
    is_new = models.BooleanField(default=False)
    is_active = models.BooleanField(default=False)
    note_chance = models.IntegerField(default=0)
    whisper_time = models.IntegerField(default=0)
    package_type = models.IntegerField(null=True, blank=True)
    package_starting_time = models.DateTimeField(null=True, blank=True)
    package_completing_time = models.DateTimeField(null=True, blank=True)

class AIN_Package(models.Model):
    uuid = models.CharField(max_length=36)
    package_type = models.IntegerField()
    create_time = models.DateTimeField()

class AIN_Presubscription(models.Model):
    uuid = models.CharField(max_length=36)
    month_duration = models.IntegerField()
    package_type = models.IntegerField()

class AIN_Extra_Data_Package(models.Model):
    uuid = models.CharField(max_length=36)
    package_type = models.IntegerField()
    create_time = models.DateTimeField()

class AIN_Promotion_Package(models.Model):
    package_type = models.IntegerField()
    create_time = models.DateTimeField()
    is_redeemed = models.BooleanField(default=False)
    promo_code = models.CharField(max_length=12)
    uuid = models.CharField(max_length=36, null=True, blank=True)
    used_time = models.DateTimeField(null=True, blank=True)
